package com.niiwoo.civet.trade.dto.response.invest;

import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class InvestCalendarDayStatResponseDTO implements Serializable, Comparable<InvestCalendarDayStatResponseDTO> {
	private static final long serialVersionUID = 211426598356689192L;
	
	// 年
	private String year;
	// 月
	private String month;
	// 日
	private String day;
	// 待收金额
	private BigDecimal unreceivedAmount;
	// 已收金额
	private BigDecimal receivedAmount;
	// 待收本金
	private BigDecimal unreceivedPrincipal;
	// 已收本金
	private BigDecimal receivedPrincipal;
	// 待收利息
	private BigDecimal unreceivedInterest;
	// 已收利息
	private BigDecimal receivedInterest;
	
	@Override
    public int compareTo(InvestCalendarDayStatResponseDTO o) {  
        return Integer.valueOf(this.getDay()) - Integer.valueOf(o.getDay());  
    }
}
